Link against libgcc and libc to avoid unresolved symbols
authorGuillem Jover <guillem@debian.org>
Tue, 26 Feb 2019 04:26:21 +0000 (04:26 +0000)
committerGuillem Jover <guillem@debian.org>
Tue, 26 Feb 2019 04:26:21 +0000 (04:26 +0000)
commitc1b6570ccdbb722fb270ba02e6276a71a7d39c67
treefd0a19742ef94fc724763caf77fd922161de6676
parentc23292a81874767bf7c396f66fac4fcc208cddb7
Link against libgcc and libc to avoid unresolved symbols

Origin: vendor
Bug-Debian: 764509
Forwarded: no
Last-Update: 2014-10-09

We need to link agaisnt -lgcc, on at least hppa. We also need to link
against -lc, because we are now always using the syscall() libc function.
So let's stop passing -nostdlib and -nostartfiles.

Note: we used to use -Wl,--as-needed, this way we made sure we pulled the
required fortified functions from the internal libc_nonshared.a, but did
not link against the shared library because we did not use any of its
symbols.

Gbp-Pq: Name 01_link_libs.patch
src/Makefile